.class public Lcom/burstly/lib/conveniencelayer/BurstlyBanner;
.super Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;
.source "BurstlyBanner.java"


# direct methods
.method public constructor <init>(Landroid/app/Activity;I)V
    .locals 2
    .parameter "activity"
    .parameter "id"
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation

    .prologue
    .line 42
    sget-object v1, Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;->UNKNOWN:Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;

    invoke-direct {p0, p1, v1}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;-><init>(Landroid/app/Activity;Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;)V

    .line 44
    invoke-virtual {p1, p2}, Landroid/app/Activity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/burstly/lib/ui/BurstlyView;

    .line 45
    .local v0, burstlyView:Lcom/burstly/lib/ui/BurstlyView;
    invoke-virtual {p0, v0}, Lcom/burstly/lib/conveniencelayer/BurstlyBanner;->setBurstlyView(Lcom/burstly/lib/ui/BurstlyView;)V

    .line 46
    return-void
.end method

.method public constructor <init>(Landroid/app/Activity;Landroid/view/ViewGroup;Landroid/view/ViewGroup$LayoutParams;Ljava/lang/String;Ljava/lang/String;I)V
    .locals 1
    .parameter "activity"
    .parameter "group"
    .parameter "params"
    .parameter "zoneId"
    .parameter "viewName"
    .parameter "refreshRate"
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation

    .prologue
    .line 93
    sget-object v0, Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;->UNKNOWN:Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;

    invoke-direct {p0, p1, v0}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;-><init>(Landroid/app/Activity;Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;)V

    .line 94
    invoke-virtual/range {p0 .. p6}, Lcom/burstly/lib/conveniencelayer/BurstlyBanner;->initBurstlyBanner(Landroid/app/Activity;Landroid/view/ViewGroup;Landroid/view/ViewGroup$LayoutParams;Ljava/lang/String;Ljava/lang/String;I)V

    .line 95
    return-void
.end method

.method public constructor <init>(Landroid/app/Activity;Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;I)V
    .locals 1
    .parameter "activity"
    .parameter "adSize"
    .parameter "id"

    .prologue
    .line 127
    invoke-direct {p0, p1, p2}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;-><init>(Landroid/app/Activity;Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;)V

    .line 129
    invoke-virtual {p1, p3}, Landroid/app/Activity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/burstly/lib/ui/BurstlyView;

    .line 130
    .local v0, burstlyView:Lcom/burstly/lib/ui/BurstlyView;
    invoke-virtual {p0, v0}, Lcom/burstly/lib/conveniencelayer/BurstlyBanner;->setBurstlyView(Lcom/burstly/lib/ui/BurstlyView;)V

    .line 131
    return-void
.end method

.method public constructor <init>(Landroid/app/Activity;Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;Landroid/view/ViewGroup;Landroid/view/ViewGroup$LayoutParams;Ljava/lang/String;Ljava/lang/String;I)V
    .locals 7
    .parameter "activity"
    .parameter "adSize"
    .parameter "group"
    .parameter "params"
    .parameter "zoneId"
    .parameter "viewName"
    .parameter "refreshRate"

    .prologue
    .line 172
    invoke-direct {p0, p1, p2}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;-><init>(Landroid/app/Activity;Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;)V

    move-object v0, p0

    move-object v1, p1

    move-object v2, p3

    move-object v3, p4

    move-object v4, p5

    move-object v5, p6

    move v6, p7

    .line 173
    invoke-virtual/range {v0 .. v6}, Lcom/burstly/lib/conveniencelayer/BurstlyBanner;->initBurstlyBanner(Landroid/app/Activity;Landroid/view/ViewGroup;Landroid/view/ViewGroup$LayoutParams;Ljava/lang/String;Ljava/lang/String;I)V

    .line 174
    return-void
.end method

.method public constructor <init>(Landroid/support/v4/app/Fragment;I)V
    .locals 4
    .parameter "fragment"
    .parameter "id"
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation

    .prologue
    .line 59
    sget-object v2, Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;->UNKNOWN:Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;

    invoke-direct {p0, p1, v2}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;-><init>(Landroid/support/v4/app/Fragment;Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;)V

    .line 61
    invoke-virtual {p1}, Landroid/support/v4/app/Fragment;->getView()Landroid/view/View;

    move-result-object v1

    .line 63
    .local v1, rootView:Landroid/view/View;
    if-nez v1, :cond_0

    .line 64
    new-instance v2, Ljava/lang/RuntimeException;

    const-string v3, "fragment.getView returned null. Has this fragment inflated a layout?"

    invoke-direct {v2, v3}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V

    throw v2

    .line 67
    :cond_0
    invoke-virtual {v1, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/burstly/lib/ui/BurstlyView;

    .line 69
    .local v0, burstlyView:Lcom/burstly/lib/ui/BurstlyView;
    if-nez v0, :cond_1

    .line 70
    new-instance v2, Ljava/lang/RuntimeException;

    const-string v3, "Invalid view Id.  A view with this Id could not be found in the current layout"

    invoke-direct {v2, v3}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V

    throw v2

    .line 73
    :cond_1
    invoke-virtual {p0, v0}, Lcom/burstly/lib/conveniencelayer/BurstlyBanner;->setBurstlyView(Lcom/burstly/lib/ui/BurstlyView;)V

    .line 74
    return-void
.end method

.method public constructor <init>(Landroid/support/v4/app/Fragment;Landroid/view/ViewGroup;Landroid/view/ViewGroup$LayoutParams;Ljava/lang/String;Ljava/lang/String;I)V
    .locals 7
    .parameter "fragment"
    .parameter "group"
    .parameter "params"
    .parameter "zoneId"
    .parameter "viewName"
    .parameter "refreshRate"
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation

    .prologue
    .line 114
    sget-object v0, Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;->UNKNOWN:Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;

    invoke-direct {p0, p1, v0}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;-><init>(Landroid/support/v4/app/Fragment;Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;)V

    .line 115
    invoke-virtual {p1}, Landroid/support/v4/app/Fragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v1

    move-object v0, p0

    move-object v2, p2

    move-object v3, p3

    move-object v4, p4

    move-object v5, p5

    move v6, p6

    invoke-virtual/range {v0 .. v6}, Lcom/burstly/lib/conveniencelayer/BurstlyBanner;->initBurstlyBanner(Landroid/app/Activity;Landroid/view/ViewGroup;Landroid/view/ViewGroup$LayoutParams;Ljava/lang/String;Ljava/lang/String;I)V

    .line 116
    return-void
.end method

.method public constructor <init>(Landroid/support/v4/app/Fragment;Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;I)V
    .locals 4
    .parameter "fragment"
    .parameter "adSize"
    .parameter "id"

    .prologue
    .line 142
    invoke-direct {p0, p1, p2}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;-><init>(Landroid/support/v4/app/Fragment;Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;)V

    .line 144
    invoke-virtual {p1}, Landroid/support/v4/app/Fragment;->getView()Landroid/view/View;

    move-result-object v1

    .line 146
    .local v1, rootView:Landroid/view/View;
    if-nez v1, :cond_0

    .line 147
    new-instance v2, Ljava/lang/RuntimeException;

    const-string v3, "fragment.getView returned null. Has this fragment inflated a layout?"

    invoke-direct {v2, v3}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V

    throw v2

    .line 150
    :cond_0
    invoke-virtual {v1, p3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/burstly/lib/ui/BurstlyView;

    .line 152
    .local v0, burstlyView:Lcom/burstly/lib/ui/BurstlyView;
    if-nez v0, :cond_1

    .line 153
    new-instance v2, Ljava/lang/RuntimeException;

    const-string v3, "Invalid view Id.  A view with this Id could not be found in the current layout"

    invoke-direct {v2, v3}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V

    throw v2

    .line 156
    :cond_1
    invoke-virtual {p0, v0}, Lcom/burstly/lib/conveniencelayer/BurstlyBanner;->setBurstlyView(Lcom/burstly/lib/ui/BurstlyView;)V

    .line 157
    return-void
.end method

.method public constructor <init>(Landroid/support/v4/app/Fragment;Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;Landroid/view/ViewGroup;Landroid/view/ViewGroup$LayoutParams;Ljava/lang/String;Ljava/lang/String;I)V
    .locals 7
    .parameter "fragment"
    .parameter "adSize"
    .parameter "group"
    .parameter "params"
    .parameter "zoneId"
    .parameter "viewName"
    .parameter "refreshRate"

    .prologue
    .line 189
    invoke-direct {p0, p1, p2}, Lcom/burstly/lib/conveniencelayer/BurstlyBaseAd;-><init>(Landroid/support/v4/app/Fragment;Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;)V

    .line 190
    invoke-virtual {p1}, Landroid/support/v4/app/Fragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v1

    move-object v0, p0

    move-object v2, p3

    move-object v3, p4

    move-object v4, p5

    move-object v5, p6

    move v6, p7

    invoke-virtual/range {v0 .. v6}, Lcom/burstly/lib/conveniencelayer/BurstlyBanner;->initBurstlyBanner(Landroid/app/Activity;Landroid/view/ViewGroup;Landroid/view/ViewGroup$LayoutParams;Ljava/lang/String;Ljava/lang/String;I)V

    .line 191
    return-void
.end method


# virtual methods
.method initBurstlyBanner(Landroid/app/Activity;Landroid/view/ViewGroup;Landroid/view/ViewGroup$LayoutParams;Ljava/lang/String;Ljava/lang/String;I)V
    .locals 2
    .parameter "activity"
    .parameter "group"
    .parameter "params"
    .parameter "zoneId"
    .parameter "viewName"
    .parameter "refreshRate"

    .prologue
    .line 205
    new-instance v0, Lcom/burstly/lib/ui/BurstlyView;

    invoke-direct {v0, p1}, Lcom/burstly/lib/ui/BurstlyView;-><init>(Landroid/content/Context;)V

    .line 206
    .local v0, burstlyView:Lcom/burstly/lib/ui/BurstlyView;
    invoke-static {}, Lcom/burstly/lib/conveniencelayer/Burstly;->getAppID()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/burstly/lib/ui/BurstlyView;->setPublisherId(Ljava/lang/String;)V

    .line 207
    invoke-virtual {v0, p4}, Lcom/burstly/lib/ui/BurstlyView;->setZoneId(Ljava/lang/String;)V

    .line 208
    invoke-virtual {v0, p5}, Lcom/burstly/lib/ui/BurstlyView;->setBurstlyViewId(Ljava/lang/String;)V

    .line 209
    invoke-virtual {v0, p6}, Lcom/burstly/lib/ui/BurstlyView;->setDefaultSessionLife(I)V

    .line 211
    invoke-virtual {p0, v0}, Lcom/burstly/lib/conveniencelayer/BurstlyBanner;->setBurstlyView(Lcom/burstly/lib/ui/BurstlyView;)V

    .line 213
    if-eqz p3, :cond_0

    .line 214
    invoke-virtual {p2, v0, p3}, Landroid/view/ViewGroup;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 218
    :goto_0
    return-void

    .line 216
    :cond_0
    invoke-virtual {p2, v0}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    goto :goto_0
.end method
